<?php
class Link extends FrontAction {
    protected function init() {
        if(!$this->checkConsoleLogin()) {
            $this->redirect('member/login');
            exit;
        }

        $act_name = strtolower(MODULE_NAME);
        $this->topNav[$act_name] = ' current';
        $act_name = strtolower(MODULE_NAME).'_'.strtolower(ACTION_NAME);
        $this->subNav[$act_name] = ' current';
        $this->assign('menu',W('consoleMenu',array(),true));
        $this->assign('currTopNav',$this->topNav);
        $this->assign('currSubNav',$this->subNav);
        $this->assign('user',$this->user);
        $this->assign('user_info',$this->user_info);
        $this->assign('root_path',$this->root_path);

    }
}